import i18n from '@/i18n'
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'

export class MetaBoardData {
  static ApiPropertyEnum = {}

  @ApiProperty({ description: 'ID', type: Number })
  id: number

  @ApiProperty({ description: i18n.t('app-meta.model.meta-board-data.1215080-0'), type: String })
  label: string

  @ApiPropertyOptional({ description: i18n.t('app-meta.model.meta-board-data.1215080-1'), type: String })
  data?: string

  @ApiProperty({ description: i18n.t('app-meta.model.meta-board-data.1215080-2'), type: Date })
  createTime: Date

  @ApiProperty({ description: i18n.t('app-meta.model.meta-board-data.1215080-3'), type: String })
  platform: string

  @ApiPropertyOptional({ description: i18n.t('app-meta.model.meta-board-data.1215080-4'), type: String })
  project?: string

  @ApiProperty({ description: i18n.t('app-meta.model.meta-board-data.1215080-5'), type: String })
  dataHash: string
}
